package com.hh.demo.service.impl;

import com.hh.demo.entity.Rent;
import com.hh.demo.mapper.RentMapper;
import com.hh.demo.service.IRentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 吉吉国王
 * @since 2022-12-05
 */
@Service
public class RentServiceImpl extends ServiceImpl<RentMapper, Rent> implements IRentService {
    @Resource
    private RentMapper rentMapper;

    @Override
    public List<Rent> queryCount() {
        return rentMapper.queryCount();
    }

    @Override
    public void returnToy(String toyId, String userId,String format) {
        rentMapper.returnToy(toyId,userId,format);
    }
}
